<template>
    <div class="exchange">
        <div class="exchange-item" v-for="i in exchangeList" :key="i.id">
            <div class="exchange-item-left">
                <div class="exchange-item-name">{{i.name}}</div>
                <div class="exchange-item-info">地址：{{i.address}}</div>
                <div class="exchange-item-info">兑换金额：<span class="price">{{i.price}}</span>元</div>
                <div class="exchange-item-info">兑换时间：{{i.time}}</div>
                <div class="exchange-item-info">订单号：{{i.order}}</div>
            </div>
            <div class="navigate-button">导航</div>
        </div>
        <div class="bottom-space"></div>
    </div>
</template>

<script>
    export default {
        name: "exchange",
        data () {
            return {
                exchangeList: [
                    {
                        id: 0,
                        name: '大龙燚火锅（高升桥店）',
                        address: '锦江区宏济新路330号（天香仁和酒楼旁）',
                        price: '100',
                        time: '2020/06/06  12:00',
                        order: '79827498282982982',
                    },
                    {
                        id: 1,
                        name: '大龙燚火锅（高升桥店）',
                        address: '锦江区宏济新路330号（天香仁和酒楼旁）',
                        price: '100元',
                        time: '2020/06/06  12:00',
                        order: '79827498282982982',
                    },
                    {
                        id: 2,
                        name: '大龙燚火锅（高升桥店）',
                        address: '锦江区宏济新路330号（天香仁和酒楼旁）',
                        price: '100元',
                        time: '2020/06/06  12:00',
                        order: '79827498282982982',
                    }
                ]
            }
        },
        methods:{
            nav (i) {
                console.log(i)
            }
        }
    }
</script>

<style scoped lang="scss">
    .exchange {
        padding-top: 0.2rem;
        &-item {
            width: 7.02rem;
            min-height: 3.08rem;
            background: rgba(255, 255, 255, 1);
            border: 0.01rem solid rgba(238, 238, 238, 1);
            border-radius: 0.1rem;
            margin: 0 auto 0.2rem auto;
            padding: 0.2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .exchange-item-left {
                padding-right: 0.2rem;
                width: 6rem;
                .exchange-item-name {
                    font-size: 0.3rem;
                    font-weight: 500;
                    color: rgba(51, 51, 51, 1);
                    line-height: 0.6rem;
                    margin-bottom: 0.2rem;
                }
                .exchange-item-info{
                    font-size:0.24rem;
                    font-weight:500;
                    color:rgba(153,153,153,1);
                    line-height: 0.4rem;
                    .price{
                        color: rgba(255, 150, 38, 1);
                    }
                }
            }
            .navigate-button {
                width: 0.98rem;
                line-height: 0.44rem;
                background: rgba(255, 150, 38, 1);
                border: 0.01rem solid rgba(238, 238, 238, 1);
                border-radius: 0.22rem;
                font-size: 0.24rem;
                font-weight: 500;
                color: rgba(255, 255, 255, 1);
                text-align: center;
            }
        }
        .bottom-space{
            height: 1.4rem;
        }
    }
</style>